fea97e8624b9428d7e987dce41a037d12004d409,grails-plugin-converters/src/main/groovy/org/grails/web/converters/marshaller/json/DomainClassMarshaller.java,DomainClassMarshaller,marshalObject,#Object#JSON#,92

Before Change



        if(shouldInclude(includeExcludeSupport, includes, excludes, value, id.getName())) {
            Object idValue = extractValue(value, id);
            json.property(GrailsDomainClassProperty.IDENTITY, idValue);
        }

        if (shouldInclude(includeExcludeSupport, includes, excludes, value, GrailsDomainClassProperty.VERSION) && isIncludeVersion()) {

After Change



        if(shouldInclude(includeExcludeSupport, includes, excludes, value, id.getName())) {
            Object idValue = extractValue(value, id);
            if(idValue != null) {
                json.property(GrailsDomainClassProperty.IDENTITY, idValue);
            }
        }